using System.ComponentModel.Composition;
using OPSYS_Schematic.BussinessLogic;
using OPSYS_Schematic.ShapeFoundation;
using OPSYS_Schematic.UIInfrastructure;
using WPFSchematics.Graphics.Views;

namespace OPSYS_Schematic.Presentation.ViewModels
{
    [DockScreen(Type = DockType.Document)]
    public class DesignerViewModel : AvalonDockScreen, IDockDocumentScreen
    {
        [Import]
        public IDesignerViewManager DesignerViewManager { get; set; }

        public DesignerViewModel()
            : base(WorkbenchName.DesignerScreen)
        {
        }

        public ShapeCanvas ShapeCanvas
        {
            get { return (ShapeCanvas) DesignerViewManager.CurrentShapeView; }
        }
    }
}